package com.springcloud.authorservice.service.impl;

import com.springcloud.authorservice.mapper.AuthorMapper;
import com.springcloud.authorservice.pojo.Author;
import com.springcloud.authorservice.service.AuthorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuthorServiceImpl implements AuthorService {
    @Autowired
    private AuthorMapper authorMapper;
    @Override
    public Author getAuthorInfo(Integer id) {
        return authorMapper.getAuthorInfo(id);
    }
}
